package a.h;

import javax.swing.filechooser.FileFilter;
import java.io.File;

public class td
  extends FileFilter
{
  public static final String a = "jpeg";
  public static final String b = "jpg";
  public static final String c = "gif";
  public static final String d = "tiff";
  public static final String e = "tif";
  public static final String f = "png";
  public static final String g = "svg";
  public static final String h = "svgz";
  public static int i;
  
  public boolean accept(File paramFile)
  {
    int j = ec.t;
    if (j == 0) {
      if (paramFile.isDirectory()) {
        return true;
      }
    }
    String str = a(paramFile);
    if ((j != 0) || (str != null))
    {
      if (j == 0) {
        if (!str.equalsIgnoreCase("tiff"))
        {
          if (j != 0) {
            break label109;
          }
          if (!str.equalsIgnoreCase("tif"))
          {
            if (j != 0) {
              break label109;
            }
            if (!str.equalsIgnoreCase("gif"))
            {
              if (j != 0) {
                break label109;
              }
              if (!str.equalsIgnoreCase("jpeg"))
              {
                if (j != 0) {
                  break label109;
                }
                if (!str.equalsIgnoreCase("jpg"))
                {
                  if (j != 0) {
                    break label111;
                  }
                  if (!str.equalsIgnoreCase("png")) {
                    break label110;
                  }
                }
              }
            }
          }
        }
      }
      label109:
      return true;
      label110:
      label111:
      return false;
    }
    return false;
  }
  
  public String getDescription()
  {
    return "Icon Files";
  }
  
  public static String a(File paramFile)
  {
    String str1 = null;
    String str2 = paramFile.getName();
    int j = str2.lastIndexOf('.');
    if (((ec.t != 0) || (j > 0)) && (j < str2.length() - 1)) {
      str1 = str2.substring(j + 1).toLowerCase();
    }
    return str1;
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.h.td

 * JD-Core Version:    0.7.0.1

 */